package com.ithuameng.admin.app.system.model.admin.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 管理员登录 vo
 *
 * @author ithuameng
 */
@Data
public class AdminLoginVo {

    @ApiModelProperty(value = "用户名", required = true, example = "admin")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true, example = "123123")
    @Size(min = 6, message = "密码长度最低6个字符")
    @NotBlank(message = "密码不能为空")
    private String password;
}
